package com.itheima.test1;

import java.util.TreeSet;

public class Teacher {
    private String tid;
    private String name;
    private TreeSet<Student> tsStudent;

    public Teacher() {
    }

    public Teacher(String tid, String name) {
        this.tid = tid;
        this.name = name;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public TreeSet<Student> getTsStudent() {
        return tsStudent;
    }

    public void setTsStudent(TreeSet<Student> tsStudent) {
        this.tsStudent = tsStudent;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tid='" + tid + '\'' +
                ", name='" + name + '\'' +
                ", tsStudent=" + tsStudent +
                '}'+"\n";
    }
}
